package com.imooc.sell.enums;


import lombok.Getter;

@Getter
public enum ResultEnum {

    Param_Error(1,"参数不正确"),

    product_not_exist(10,"商品不存在"),

    product_stock_error(11,"商品库存不正确"),

    Order_Not_Exist(12,"订单不存在"),

    OrderDetail_Not_Exist(13,"订单详情不存在"),

    Order_status_error(14,"订单状态不正确"),

    Order_Update_Fail(15,"订单更新失败"),

    Order_Detail_Empty(16, "订单中详情为空"),

    Order_PayStatus_Error(17, "订单支付状态不正确"),

    Cart_Empty(18,"购物车为空"),

    Order_Owner_Error(19,"该订单不属于当前用户") ;

    private Integer code;

    private String message;

    ResultEnum(Integer code,String message){

        this.code = code;
        this.message = message;
    }


}
